package com.yz.model.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * <p>
 * User:Mr.Du
 * Date:2024/4/9
 * Time:10:23
 */
@Data
@Builder
@TableName("orders")
public class Order {

    // 订单号
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    // 用户id
    private Long uid;

    // 订单标题
    private String subject;

    // 支付金额
    private Long amount;

    // 支付金额
    private Float realAmount;

    // 优惠金额
    private Float discountRate;

    // 支付状态 0:未支付 1:已支付
    private Integer status;

    // 优惠码信息
    private String promotionCode;

    private LocalDateTime createTime;

    private LocalDateTime finishTime;
}
